<template>
  <div>
      <img :src="article.imgSrc" alt="">
      <div>{{article.detail}}</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      article: {},
    };
  },
  mounted() {
    console.log(this.$route.params);
    var { id } = this.$route.params;
    this.$http(`http://122.112.161.135:4000/api/articleDetail?id=${id}`).then(
      (res) => {
        this.article = res.data.res[0];
      }
    );
  },
};
</script>

<style>
</style>